package com.wlyuan.open.scanner.domain.vehicle;

import com.wlyuan.open.scanner.domain.BaseDomain;
import com.wlyuan.open.scanner.utils.enums.SourceInvalidEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author lijing
 * @description
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class Vehicle extends BaseDomain {

    @ApiModelProperty(value = "车牌号")
    private String plateNo;

    @ApiModelProperty(value = "车辆类型")
    private Integer type;

    @ApiModelProperty(value = "车长")
    private Double length;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "载重")
    private BigDecimal loadWeight;

    @ApiModelProperty(value = "座位数")
    private Integer seats;

    @ApiModelProperty(value = "购买日期")
    private LocalDate buyDate;

    @ApiModelProperty(value = "保险过期时间")
    private LocalDate insuranceEndDate;

    @ApiModelProperty(value = "车辆品牌")
    private String brand;

    @ApiModelProperty(value = "车辆图片")
    private String imageUrl;

    @ApiModelProperty(value = "状态")
    private SourceInvalidEnum carInvalid;

    private Long createBy;
    private Long updateBy;

    private Integer id;

}
